/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mapdbtest;

import java.io.Serializable;

/**
 *
 * @author avilja
 */
public class Note implements Serializable {

    private final int id;
    private final String heading;
    private final String note;

    public Note(int id, String heading, String note) {
        this.id = id;
        this.heading = heading;
        this.note = note;
    }

    public int getId() {
        return id;
    }

    public String getHeading() {
        return heading;
    }

    public String getNote() {
        return note;
    }

    @Override
    public String toString() {
        return id + ": " + getHeading();
    }

    
}
